<%@ include file="/common/taglibs.jsp"%>
<div id="header">
	<div id="date">
		<jsp:useBean id="now" class="java.util.Date" scope="request" />
		<fmt:formatDate type="both" dateStyle="full" timeStyle="short" value="${now}" />
	</div>
	
	<c:set var="mainContent">
		<authz:authorize ifAnyGranted="ROLE_ANONYMOUS">
			mainContent${application_theme}.xhtml
		</authz:authorize>
		<authz:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
			mainContent${application_theme}.html
		</authz:authorize>
	</c:set>
	
	<div id="topnav">
		<ul>
		<li class="left"></li>
		<li><a href="<c:out value="${mainContent}"/>?t=0">Home</a></li>
		<c:set var="aboutURL">
				<fmt:bundle basename="CustomizableResources">
					<fmt:message key="footer.aboutPage.html"/>${application_theme}.html					
				</fmt:bundle>
		</c:set>
		<c:set var="policyURL">
				<fmt:bundle basename="CustomizableResources">
					<fmt:message key="footer.policyPage.html"/>${application_theme}.html					
				</fmt:bundle>
		</c:set>
		<li class="page_item page-item-2"><a href="${aboutURL}" title="Policy"><fmt:bundle basename="CustomizableResources"><fmt:message key="footer.about.title"/></fmt:bundle></a></li>
		<li class="page_item page-item-3"><a href="${policyURL}" title="About"><fmt:bundle basename="CustomizableResources"><fmt:message key="footer.policy.title"/></fmt:bundle></a></li>
					
		<li class="page_item page-item-29"><a href="http://deluxethemes.com/comfy/archives/" title="Archives">Archives</a></li>
		<li class="feed"><a href="<c:url value="/rss_2.0"/>">RSS feed</a></li>
		<li class="right"></li>
		</ul>
	</div>
	
	<div class="clear"></div>
		
	<a href="#showOptions" title="Layout Options" id="options"></a>
		
	<div id="ad468"><a href="#"><img width="468" height="60" src="http://4java.ca/img/4java_banner_486x60_1.jpg" alt="4Java.ca - JSP Hosting, Servlet Hosting, J2EE Hosting"></a></div>
</div>